home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / benchmarks / itc / sas / sys / exec.h < prev   
Encoding:
C/C++ Source or Header  |  1989-08-30  |  1.3 KB  |  37 lines

  1. /* $Header: exec.h,v 2.1 88/06/13 17:45:43 hilfingr Exp $ */
  2.  
  3. /*
  4.  * Copyright (c) 1985 by Sun Microsystems, Inc.
  5.  * Modifications copyright (c) 1987 by The Regents of the University of
  6.  * California.
  7.  */
  8.  
  9. #ifndef _EXEC_
  10. #define _EXEC_
  11.  
  12. /*
  13.  * format of the exec header
  14.  * known by kernel and by user programs
  15.  */
  16. struct exec {
  17.     unsigned long   a_magic;    /* magic number */
  18.     unsigned long   a_bytord;   /* byte order indicator */
  19.     unsigned long   a_text;     /* size of text segment */
  20.     unsigned long   a_data;     /* size of private initialized data */
  21.     unsigned long   a_sdata;    /* size of shared initialized data */
  22.     unsigned long   a_bss;      /* size of private uninitialized data */
  23.     unsigned long   a_sbss;     /* size of shared uninitialized data */
  24.     unsigned long   a_syms;     /* size of symbol table */
  25.     unsigned long   a_entry;    /* entry point (memory address of */
  26.                                 /* starting address for execution) */
  27.     unsigned long   a_rsize;    /* size of relocation area */
  28.     unsigned long   a_expsize;  /* size of load-time expressions */
  29.     unsigned long   a_padding;
  30. };
  31.  
  32. #define    ZMAGIC    0513        /* demand load format. Read-only text */
  33. #define OMAGIC    0507        /* impure format: also used for */
  34.                     /* non-executable load files. */
  35.  
  36. #endif _EXEC_
  37.